#pragma once

#include <wx/wx.h>
#include <wx/panel.h>
#include <SFMLWidget/wxSFMLCanvas.hpp>
#include <iostream>
#include <wx/listbox.h>
#include <UI/text_box.h>

class MyCanvas : public wxSFMLCanvas
{
public :
    MyCanvas(wxWindow* Parent, wxWindowID Id, const wxPoint& Position, const wxSize& Size, long Style = 0) :
    wxSFMLCanvas(Parent, Id, Position, Size, Style)
    {
        Connect(wxEVT_MOTION, wxMouseEventHandler(MyCanvas::OnMouseMove));
		Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MyCanvas::on_mouse_click));
		clock.Reset();
    }

private :
    virtual void OnUpdate();
    void OnMouseMove(wxMouseEvent& Event);
	void on_mouse_click(wxMouseEvent& e);
	sf::Clock clock;

public:
    sf::Sprite mySprite; ///< Something to draw
};
